﻿using System.Collections.Generic;

namespace DR.Repository.Abstract
{
    public interface IRepository<E, K>
    {
        E SelectByID(K id);
        IList<E> SelectAll();
        IList<E> SelectAll(int startIndex, int maxSize);
        E Update(E entity);
        E Insert(E entity);
        void Delete(K id);
        int GetCount();
    }
}
